﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 金蝶星瀚系统;

namespace 金蝶星瀚系统.KingDeeResponse
{
    public class ResponseRoot<T>
    {
        public Response<T> Response { get; set; }
    }

    public class Response<T>
    {
        /// <summary>
        /// 
        /// </summary>
        public Data<T> Data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Head Head { get; set; }
    }

    public class Head
    {
        /// <summary>
        /// 
        /// </summary>
        public string BIZTRANSACTIONID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string COMMENTS { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ERRORCODE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ERRORINFO { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string RESULT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string SUCCESSCOUNT { get; set; }
    }

    public class Data<T>
    {
		/// <summary>
		/// 
		/// </summary>
		public string code { get; set; }
		/// <summary>
		/// 生产批号信息查询成功
		/// </summary>
		public ErrorMessage errorMessage { get; set; }
		/// 
		/// </summary>
		public bool status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<T> data { get; set; }
    }

	public class ErrorMessage
	{
		/// <summary>
		/// 
		/// </summary>
		public string errorMessage { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public List<List<string>> errorPath { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public string primaryKey { get; set; }
	}

	/// <summary>
	/// 生产批号
	/// </summary>
	public class ProductLot
    {
        public string number { get; set; }

        public DateTime bantchDate { get; set; }

        /// <summary>
        /// 正常批号A，合批批号B
        /// </summary>
        public string batchType { get; set; }

	}

    public class PackageBatch
    {
        public string pacBantchNo { get; set; }

    }



    /// <summary>
    /// 料况
    /// </summary>
    public class MaterialCondition
    {
        /// <summary>
        /// 料况编码
        /// </summary>
        public string number { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string name { get; set; }
    }

    public class KingDeeCartonInfo
    {
        /// <summary>
        /// 生产批号
        /// </summary>
        public string productLotNumber { get; set; }
        /// <summary>
        /// 箱号
        /// </summary>
        public string cartNo { get; set; }
        /// <summary>
        /// 托号
        /// </summary>
        public string palltNo { get; set; }
        /// <summary>
        /// 装箱日期	yyyy-MM-dd样式展示
        /// </summary>
        public string packageTime { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string materialNo { get; set; }
        /// <summary>
        /// 物料名称	
        /// </summary>
        public string materialName { get; set; }
        /// <summary>
        /// 物料规格型号
        /// </summary>
        public string materialModel { get; set; }
        /// <summary>
        /// 包装规格
        /// </summary>
        public string packageRule { get; set; }
        /// <summary>
        /// 包装类型
        /// </summary>
        public string packageType { get; set; }
        /// <summary>
        /// 包装批号	
        /// </summary>
        public string packageLotNo { get; set; }
        /// <summary>
        /// 包装箱号	围板箱信息
        /// </summary>
        public string packageBox { get; set; }
        /// <summary>
        /// 产品类别
        /// </summary>
        public string productType { get; set; }
        /// <summary>
        /// 质量等级
        /// </summary>
        public string qualityGrade { get; set; }
        /// <summary>
        /// 销售等级
        /// </summary>
        public string sealsLevel { get; set; }
        /// <summary>
        /// 毛重	
        /// </summary>
        public string gWeight { get; set; }
        /// <summary>
        /// 净重	
        /// </summary>
        public string nWeight { get; set; }
        /// <summary>
        /// 料况	
        /// </summary>
        public string materialCondition { get; set; }
        /// <summary>
        /// 粒径
        /// </summary>
        public string partSize { get; set; }
        /// <summary>
        /// 箱号状态	生成=10,入库通知=20,入库=40,出库通知=50,出库=60,生产退库=41,作废=-1，销售退库=30，委外出库=70
        /// </summary>
        public string cartEnable { get; set; }
        /// <summary>
        /// 单据状态	1启用，-1禁用
        /// </summary>
        public string billStatus { get; set; }
        /// <summary>
        /// 尺寸分类	
        /// </summary>
        public string sizeClass { get; set; }
        /// <summary>
        /// 定制料信息	
        /// </summary>
        public string cusMaterialInfo { get; set; }
        /// <summary>
        /// 包装流水线
        /// </summary>
        public string packageLine { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string bantchNo { get; set; }
        /// <summary>
        /// 是否入立库	1是立库，0是平库
        /// </summary>
        public string isFlatWarehouse { get; set; }
    }


    public class Result
    {
        public int flag { get; set; }

        public string msg { set; get; }
    }
}
